<?php

namespace App\Http\Controllers\Admin;

use App\Models\Sjorder;
use App\Models\Sjrecord;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class ClassrecordController extends Controller
{


    public function __construct()
    {
        view()->share([
            '_orders' => 'am-in',
            '_onbespeak' => 'am-active',

        ]);

    }
//私教上课纪录管理
    public function index($id)
    {

        $records = Sjrecord::where('sjorder_id',$id)->with('sjorder.bespeakcate')->with('sjorder.bespeak')->with('sjorder.store')->orderBy('inter_at')->get();



        return view('admin.order.classrecord',compact('records'));

    }
}
